﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Mirror;
public class OnlineScripts : MonoBehaviour
{
    // Start is called before the first frame update

    public bool AppIsSever = false;

    private NetworkManager networkManager;


    private void Start()
    {
        networkManager = GetComponent<NetworkManager>();

        if(AppIsSever == true)
        {
            networkManager.StartServer();
        }
        else
        {
            networkManager.StartClient();
        }
    }

}
